<?php include 'header.php';?>
<!--end header -->
<?php include "koneksi.php";?>


<!-- main -->
<div id="main">
<?php include 'sidebar.php';?>
    <div id="text">
	<div class="title">
        <h1><?php echo 'Gallery'?></h1>
		</div>
        <ul id="gallery">
		<?php
		$sql = mysql_query("SELECT * FROM tb_gambar");
		while ($row = mysql_fetch_array($sql))
		{
			echo '<li><a class="gallery1" rel="gallery1" href="gambar/'.$row["path"].'" title="'.$row["judul"].'"><img style="width:145px;height:110px;" src="gambar/'.$row["path"].'" alt="'.$row["judul"].'"/></a></li>';
		}
		?>
		</ul>
	</div>
</div>
<!-- end main -->

<!-- footer -->
<?php include 'footer.php';?>
